package com.xbongbong.paas.service;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.paas.toolbox.wrap.BaseVO;
import com.xbongbong.pro.form.pojo.dto.FormResultRuleSaveDTO;
import com.xbongbong.pro.form.pojo.dto.FormResultShowRuleDTO;
import com.xbongbong.pro.form.pojo.vo.FormResultShowRuleVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhouwq
 * @date 2021/11/23 16:58
 */

public interface ResultShowRuleService {

    /**
     * 插入实体
     * @param
     * @return
     */
    BaseVO save(FormResultRuleSaveDTO formResultRuleSaveDTO) throws XbbException;

    /**
     * 更新实体
     * @param formResultRuleSaveDTO
     * @return
     */
    Integer update(FormResultRuleSaveDTO formResultRuleSaveDTO) throws XbbException;

    /**
     * 根据formId查找规则数据
     * @param formResultShowRuleDTO
     * @return
     */
    FormResultShowRuleVO get(FormResultShowRuleDTO formResultShowRuleDTO) throws XbbException;

    /**
     * 删除业务规则
     * @param formId 表单id
     * @param corpid 公司id
     * @return
     */
    Integer delete( Long formId, String corpid) throws XbbException;
}
